package com.by.medical.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class SysUser implements java.io.Serializable{

    private Integer id;
    //name的数据是对应的excel文件里面的列名
    //orderNum是用来定义excel的第n列  从0开始
    //width用来定义列的宽度
    @Excel(name = "用户名",orderNum = "1",width = 20)
    private String userTrueName;
    private String password;
    @Excel(name = "工号",orderNum = "0")
    private String jobNumber;
    @Excel(name = "性别",replace = {"男_0","女_1"},orderNum = "2")
    private Integer gender;
    @Excel(name = "手机号",orderNum = "3",width = 20)
    private String phone;
    @Excel(name = "邮箱账号",orderNum = "4",width = 20)
    private String email;
    @Excel(name = "微信",orderNum = "5",width = 20)
    private String wechat;
    private String qqNumber;
    private String userImage;
    @Excel(name = "家庭地址",orderNum = "6",width = 20)
    private String address;
    private Integer deptId;
    private Integer jobId;
    private Integer regionId;
    private Integer provinceId;
    private Integer groupId;
    private Integer productGroupId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入职时间",orderNum = "7",exportFormat = "yyyy-MM-dd HH:mm:ss",width = 30)
    private java.time.LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.time.LocalDateTime updateTime;
    private String imageSrc;
}
